package com.tienon.message.mq;

import javax.annotation.PostConstruct;
import javax.jms.JMSException;

import org.springframework.stereotype.Component;

/**
 * 根据流水号更新消息发送状态
 * @author xiuye
 *
 */
@Component
public class ReceiceResponseMsgTask {

	private JMSReceiver receiver;
	
	@PostConstruct
	public void init(){
		this.receiver = new JMSReceiver();
	}
	
	private String getMsgRes() throws JMSException{
		return  this.receiver.receiveMsg();
	}
	
	/**
	 * 查询该流水号的记录for update
	 * 如果该流水的记录已经发送成功，则无需再处理
	 * 根据流水号更新消息发送状态
	 * 
	 */
	public void handlingOfBusiness(){
		
		
		
	}
	
}
